<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery1.7/jquery-1.7.js"></script>
    <style>
        *{
            padding:0;
            margin:0;
        }
        div{
            width:103px;
            height:33px;
            background:url(images/bg3.gif) no-repeat;
            float:left;
            margin-right:1px;
            text-align:center;
            line-height:33px;
            color:white;
        }
        .over{
            background:url(images/bg2.gif) no-repeat;
            color:pink;
        }
        .out{
            background:url(images/bg3.gif) no-repeat;
            color:white;
        }
    </style>
    <script>
        $(function(){
            $("div").on("mouseover",function(){
                $(this).removeClass("out");
                $(this).addClass("over");
            });
            $("div").on("mouseout",function(){
                $(this).removeClass("over");
                $(this).addClass("out");
                
            });
        });
    </script>
</head>
<body>

    <div>咨询动态</div>
    <div>产品世界</div>
    <div>市场营销</div>
</body>
</html>